﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JJNormalList.aspx.cs" Inherits="UI.ModSalary.JJNormalList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>计件工资列表</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
         <script type="text/javascript" src="../JS/calendar.js"></script>

</head>
<body>
    <form id="form1" runat="server">
     <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            计件工资列表</div>
        <div class="pagetopright">        
            编号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px" 
                TabIndex="1"></asp:TextBox>
          
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="2"></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="3"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="查询" 
                CssClass="ButtonCss" TabIndex="0" onclick="btnSearch_Click" />
           
            &nbsp;<asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" 
                />

  &nbsp;<asp:Button ID="btnProducts" runat="server" Text="定义产品" CssClass="ButtonCss" 
                />  
               
            &nbsp;
        </div>
    </div>
     <asp:GridView ID="gvList" runat="server" DataKeyNames="JJCode" Width="99%" AutoGenerateColumns="False"
       EnableViewState="false" 
 GridLines="Horizontal" CssClass="td" ShowFooter="True" 
         onrowdatabound="gvList_RowDataBound">
        <Columns>
        

            <asp:BoundField DataField="JJCode" HeaderText="传票号" 
                SortExpression="JJCode" ItemStyle-HorizontalAlign="Center">
                <ItemStyle Width="70px" />
            </asp:BoundField>
           
            <asp:TemplateField HeaderText="员工编号" SortExpression="EmpCode"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                   <a href="javascript:ShowLink('JJNormalAdd.aspx?JJCode=<%# Eval("JJCode")%>',800,600)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('JJNormalAdd.aspx?JJCode=<%# Eval("JJCode")%>',800,600)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:BoundField DataField="ProcessName" HeaderText="工序" SortExpression="ProcessName">
                <ItemStyle Width="100px" />
            </asp:BoundField>
                         
                          <asp:BoundField DataField="ProcessPrice" HeaderText="工序价格" SortExpression="ProcessPrice">
                <ItemStyle Width="90px" />
            </asp:BoundField>
             <asp:BoundField DataField="Num" HeaderText="件数" SortExpression="Num">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="NumAmount" HeaderText="金额" SortExpression="NumAmount">
                <ItemStyle Width="70px" />
            </asp:BoundField>
                
                    <asp:BoundField DataField="JjSalary" HeaderText="计件工资" SortExpression="JjSalary">
                <ItemStyle Width="90px" />
            </asp:BoundField>
             <asp:BoundField DataField="JJTime" HeaderText="时间" DataFormatString="{0:d}" SortExpression="JJTime">
                <ItemStyle Width="100px" />
            </asp:BoundField> 
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="120px" />
            </asp:BoundField>
        </Columns>
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
     
    </form>
</body>
</html>
